package edu.washington.cs.workflow.testgen;

import edu.washington.cs.workflow.analysis.guistructure.UIActionExecutor;
import edu.washington.cs.workflow.analysis.guistructure.UIActionExecutor_V2;
import edu.washington.cs.workflow.analysis.guistructure.UIActionTracer;
import edu.washington.cs.workflow.util.Log;
import edu.washington.cs.workflow.util.SimpleClock;
import edu.washington.cs.workflow.util.Utils;
import junit.framework.TestCase;

public class TestGenCrosswordSage extends TestCase {

	String mainClass = "crosswordsage.MainScreen";
	String[] args = new String[]{};
	
	public void testAllActions() {
		UIActionTracer.setDirAndProject("./experiments/statistics", "crossword");
		UIActionTracer.tracer.setTraceFile("./experiments/testgen/crossword.txt");
		SimpleClock.start();
		Utils.debuglog = true;
		Log.logConfig("./log.txt");
		UIActionExecutor tester = new UIActionExecutor(mainClass, args);
//		UIActionExecutor_V2 tester = new UIActionExecutor_V2(mainClass, args);
		tester.setUsethread(true);
//		tester.executeUIActions();
		tester.executeUIActions();
		Log.removeLogging();
		SimpleClock.stopAndPrint();
	}
}
